﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyPortfolioControl.ascx.cs" Inherits="Aandelendelen.Controls.MyPortfolioControl" %>

<%@ Register src="BannerViewControl.ascx" tagname="BannerViewControl" tagprefix="uc2" %>

<asp:Panel ID="Panel1" runat="server" CssClass="common">
<table border="0" width="100%">
<tr>
<td width="50%"><p class="title">Mijn portefeuille</p></td>
<td class="bannerview"><uc2:BannerViewControl ID="BannerViewControl1" runat="server" /></td>
</tr>
</table>

    <span><b>Mijn portefeuille:</b></span>
    <table border="0">
    <tr>
    <td align="left" valign="top">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" CssClass="saldohistorie" Font-Bold="False" ShowFooter="True" 
        AllowPaging="True" onpageindexchanging="GridView1_PageIndexChanging" 
			PagerSettings-Mode="NumericFirstLast" PagerSettings-PageButtonCount="10" 
			PagerSettings-LastPageText="Laatste" PagerSettings-FirstPageText="Eerste" 
			AllowSorting="True" OnSorting="GridView1_Sorting">
        <Columns>
            <asp:BoundField DataField="Fonds" HeaderText="Fonds" ReadOnly="True" SortExpression="Fonds" FooterText="Totaal:" >
                <ItemStyle HorizontalAlign="Left" CssClass="saldohistorie" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="Aantal" HeaderText="Aantal" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
            <asp:BoundField DataField="AankoopDatum" HeaderText="AankoopDatum"
                ReadOnly="True" SortExpression="AankoopDatum" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
            <asp:BoundField DataField="KoersToen" HeaderText="Koers" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
            <asp:BoundField DataField="Betaald" HeaderText="Betaald" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
            <asp:BoundField DataField="Laatste" HeaderText="Huidig" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
            <asp:BoundField DataField="KoersHuidig" HeaderText="Koers" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
            <asp:BoundField DataField="Waarde" HeaderText="Waarde" ReadOnly="True" SortExpression="Waarde" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
            <asp:BoundField DataField="Winst" HeaderText="Winst" ReadOnly="True" SortExpression="Winst" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
            <asp:BoundField DataField="Verkoopbereidheid" HeaderText="Verkoopbereidheid" ReadOnly="True" SortExpression="Verkoopbereidheid" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
            <asp:BoundField DataField="Verkopen" HeaderText="Verkopen?" ReadOnly="True" SortExpression="Verkopen" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
            <asp:BoundField DataField="Invloed" HeaderText="Invloed" ReadOnly="True" SortExpression="Invloed" >
                <ItemStyle HorizontalAlign="Right" CssClass="saldohistorie" />
            </asp:BoundField>
        </Columns>
        <RowStyle CssClass="saldohistorierow" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
        <AlternatingRowStyle CssClass="saldohistoriealternate" />
        <FooterStyle BackColor="White" Font-Bold="True" ForeColor="Black" HorizontalAlign="Right" />
    </asp:GridView>
    </td>
    <td align="left" valign="top">
    <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Portefeuille opslaan als..." />
    <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
        RepeatDirection="Vertical">
        <asp:ListItem Value="Excel" Selected="True">Excel</asp:ListItem>
        <asp:ListItem Value="Csv">Komma-gescheiden</asp:ListItem>
        <asp:ListItem Value="Xml">Xml</asp:ListItem>
    </asp:RadioButtonList>
    </td>

    </tr>
    </table>
</asp:Panel>